package com.cetcs.kmga.dataManager.entity.dataManager.vi;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

/**
 * 数据资源信息
 * Created by yyangs on 2017/8/23.
 */
public class ResourceVi {
    //id
    private String id;
    //资源名称
    @NotEmpty(message = "资源名称不能为空")
    private String name;
    //资源版本号
    @NotEmpty(message = "资源版本号不能为空")
    private String edition;
    //服务器ip
    @Pattern(regexp = "^((25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d)))\\.){3}(25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d)))$", message= "ip格式不正确")
    private String ip;
    //监管等级
    private String resourcesGrade;
    //资源描述
    private String text;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEdition() {
        return edition;
    }

    public void setEdition(String edition) {
        this.edition = edition;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getResourcesGrade() {
        return resourcesGrade;
    }

    public void setResourcesGrade(String resourcesGrade) {
        this.resourcesGrade = resourcesGrade;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}



